home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8415 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  822 b 

  1. Path: il.ft.hse.nl!not-for-mail
  2. From: robert@il.ft.hse.nl (robert)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: using pipe() and dup2??????
  5. Date: 4 Mar 1996 10:13:57 +0100
  6. Organization: LSD...melts in your mind, not in your hand
  7. Message-ID: <4hec8l$rg3@charm.il.ft.hse.nl>
  8. References: <4h21f7$osc@maltese.eag.unisysgsg.com> <4h3sbq$n35@charm.il.ft.hse.nl> <4h8c6b$n9g@clarknet.clark.net>
  9. NNTP-Posting-Host: charm.il.ft.hse.nl
  10.  
  11. eamick@clark.net (Eric Amick):
  12.  >robert (robert@il.ft.hse.nl) wrote:
  13.  >>You should try popen(), which works much easier:
  14.  >>After this, you can use fp with most file-stream functions (fread(), fgets(),
  15.  >>fclose()).
  16.  >pclose(), not fclose(), is used to close the stream pointer created by
  17.  >popen(). 
  18.  
  19. Oops, you're quite right :)
  20.  
  21.                                                                 robert 
  22.